//
//  ShowWinner.h
//  QuizMaster
//
//  Created by Jeppe Nielsen on 4/9/15.
//  Copyright (c) 2015 Jeppe Nielsen. All rights reserved.
//

#pragma once

#include "GameState.hpp"
#include "Game.hpp"
#include "SelectQuestionSystem.hpp"
#include "TransformAnimation.hpp"
#include "SelectableCategorySystem.hpp"

class SetupGame : public GameState<Game> {
protected:
    void Initialize();
    void Update(float dt);
    void Render();
    void Enabled();
    void Disabled();
private:
    
    GameObject* CreatePlayerFrame(GameObject** textBox);
    
    GameObject* pivot;
    
    GameObject* playerFrame[4];
    GameObject* playerName[4];
    
    GameObject* startGameButton;
    
    SelectableCategorySystem* selectableCategories;
    
    void StartButtonClicked(TouchData d);
    
    
    bool categoriesCreated;
    
    void CreateCategories();
    
};